home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / MPW Oberon 2.1168 / OInterfaces / CMMComponent.mod < prev    next >
Encoding:
Text File  |  1995-08-10  |  6.3 KB  |  135 lines  |  [TEXT/MPS ]

  1. (*
  2.      File:        CMMComponent.mod
  3.  
  4.      Contains:    ColorSync CMM Components
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Package:    Universal Interfaces 2.1ß1 in “MPW Prerelease” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs.applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. *)
  19.  
  20. (*$TAGS-*)
  21. (*$CALLING PASCAL*)
  22. MODULE CMMComponent;
  23.  
  24. IMPORT SYSTEM, Types, Quickdraw, Files, Components, CMICCProfile, CMApplication;
  25.  
  26. (* $PUSH*)
  27. (* $ALIGN MAC68K*)
  28. (* $LibExport+*)
  29.  
  30. CONST
  31.     CMMInterfaceVersion*            = 1;
  32.  
  33. (* Components.Component function selectors *)
  34. (* Required *)
  35.     kCMMInit*                    = 0;
  36.     kNCMMInit*                    = 6;
  37.     kCMMMatchColors*                = 1;
  38.     kCMMCheckColors*                = 2;
  39.  
  40. (* Optional *)
  41.     kCMMValidateProfile*            = 8;
  42.     kCMMFlattenProfile*            = 14;
  43.     kCMMUnflattenProfile*        = 15;
  44.     kCMMMatchBitmap*                = 9;
  45.     kCMMCheckBitmap*                = 10;
  46.     kCMMMatchPixMap*                = 3;
  47.     kCMMCheckPixMap*                = 4;
  48.     kCMMConcatenateProfiles*        = 5;
  49.     kCMMConcatInit*                = 7;
  50.     kCMMNewLinkProfile*            = 16;
  51.     kCMMGetPS2ColorSpace*        = 11;
  52.     kCMMGetPS2ColorRenderingIntent* = 12;
  53.     kCMMGetPS2ColorRendering*    = 13;
  54.     kCMMGetPS2ColorRenderingVMSize* = 17;
  55.  
  56.  
  57. PROCEDURE NCMInit*(CMSession: Components.ComponentInstance; srcProfile: CMApplication.CMProfileRef; dstProfile: CMApplication.CMProfileRef): CMApplication.CMError;
  58.     (*$IF NOT GENERATINGCFM*)
  59.     INLINE PASCAL $2F3C, 8, 6, $7000, $A82A;
  60.     (*$END*)
  61. PROCEDURE CMInit*(CMSession: Components.ComponentInstance; srcProfile: CMICCProfile.CMProfileHandle; dstProfile: CMICCProfile.CMProfileHandle): CMApplication.CMError;
  62.     (*$IF NOT GENERATINGCFM*)
  63.     INLINE PASCAL $2F3C, 8, 0, $7000, $A82A;
  64.     (*$END*)
  65. PROCEDURE CMMatchColors*(CMSession: Components.ComponentInstance; VAR myColors: CMApplication.CMColor; count: LONGINT): CMApplication.CMError;
  66.     (*$IF NOT GENERATINGCFM*)
  67.     INLINE PASCAL $2F3C, 8, 1, $7000, $A82A;
  68.     (*$END*)
  69. PROCEDURE CMCheckColors*(CMSession: Components.ComponentInstance; VAR myColors: CMApplication.CMColor; count: LONGINT; VAR result: LONGINT): CMApplication.CMError;
  70.     (*$IF NOT GENERATINGCFM*)
  71.     INLINE PASCAL $2F3C, 12, 2, $7000, $A82A;
  72.     (*$END*)
  73. (* Optional functions *)
  74. PROCEDURE CMMValidateProfile*(CMSession: Components.ComponentInstance; prof: CMApplication.CMProfileRef; VAR valid: BOOLEAN): CMApplication.CMError;
  75.     (*$IF NOT GENERATINGCFM*)
  76.     INLINE PASCAL $2F3C, 8, 8, $7000, $A82A;
  77.     (*$END*)
  78. PROCEDURE CMMFlattenProfile*(CMSession: Components.ComponentInstance; prof: CMApplication.CMProfileRef; flags: LONGINT; proc: CMApplication.CMFlattenUPP; refCon: (*ΔΔUNIVΔΔ*) Types.Ptr): CMApplication.CMError;
  79.     (*$IF NOT GENERATINGCFM*)
  80.     INLINE PASCAL $2F3C, 16, 14, $7000, $A82A;
  81.     (*$END*)
  82. PROCEDURE CMMUnflattenProfile*(CMSession: Components.ComponentInstance; VAR resultFileSpec: Files.FSSpec; proc: CMApplication.CMFlattenUPP; refCon: (*ΔΔUNIVΔΔ*) Types.Ptr): CMApplication.CMError;
  83.     (*$IF NOT GENERATINGCFM*)
  84.     INLINE PASCAL $2F3C, 12, 15, $7000, $A82A;
  85.     (*$END*)
  86. PROCEDURE CMMatchBitmap*(CMSession: Components.ComponentInstance; (*CONST*)VAR bitmap: CMApplication.CMBitmap; progressProc: CMApplication.CMBitmapCallBackUPP; refCon: (*ΔΔUNIVΔΔ*) Types.Ptr; VAR matchedBitmap: CMApplication.CMBitmap): CMApplication.CMError;
  87.     (*$IF NOT GENERATINGCFM*)
  88.     INLINE PASCAL $2F3C, 16, 9, $7000, $A82A;
  89.     (*$END*)
  90. PROCEDURE CMCheckBitmap*(CMSession: Components.ComponentInstance; (*CONST*)VAR bitmap: CMApplication.CMBitmap; progressProc: CMApplication.CMBitmapCallBackUPP; refCon: (*ΔΔUNIVΔΔ*) Types.Ptr; VAR resultBitmap: CMApplication.CMBitmap): CMApplication.CMError;
  91.     (*$IF NOT GENERATINGCFM*)
  92.     INLINE PASCAL $2F3C, 16, 10, $7000, $A82A;
  93.     (*$END*)
  94. PROCEDURE CMMatchPixMap*(CMSession: Components.ComponentInstance; VAR myPixMap: Quickdraw.PixMap; progressProc: CMApplication.CMBitmapCallBackUPP; refCon: (*ΔΔUNIVΔΔ*) Types.Ptr): CMApplication.CMError;
  95.     (*$IF NOT GENERATINGCFM*)
  96.     INLINE PASCAL $2F3C, 12, 3, $7000, $A82A;
  97.     (*$END*)
  98. PROCEDURE CMCheckPixMap*(CMSession: Components.ComponentInstance; (*CONST*)VAR myPixMap: Quickdraw.PixMap; progressProc: CMApplication.CMBitmapCallBackUPP; VAR myBitMap: Quickdraw.BitMap; refCon: (*ΔΔUNIVΔΔ*) Types.Ptr): CMApplication.CMError;
  99.     (*$IF NOT GENERATINGCFM*)
  100.     INLINE PASCAL $2F3C, 16, 4, $7000, $A82A;
  101.     (*$END*)
  102. PROCEDURE CMConcatInit*(CMSession: Components.ComponentInstance; VAR profileSet: CMApplication.CMConcatProfileSet): CMApplication.CMError;
  103.     (*$IF NOT GENERATINGCFM*)
  104.     INLINE PASCAL $2F3C, 4, 7, $7000, $A82A;
  105.     (*$END*)
  106. PROCEDURE CMNewLinkProfile*(CMSession: Components.ComponentInstance; VAR prof: CMApplication.CMProfileRef; (*CONST*)VAR targetLocation: CMApplication.CMProfileLocation; VAR profileSet: CMApplication.CMConcatProfileSet): CMApplication.CMError;
  107.     (*$IF NOT GENERATINGCFM*)
  108.     INLINE PASCAL $2F3C, 12, 16, $7000, $A82A;
  109.     (*$END*)
  110. PROCEDURE CMMGetPS2ColorSpace*(CMSession: Components.ComponentInstance; srcProf: CMApplication.CMProfileRef; flags: LONGINT; proc: CMApplication.CMFlattenUPP; refCon: (*ΔΔUNIVΔΔ*) Types.Ptr): CMApplication.CMError;
  111.     (*$IF NOT GENERATINGCFM*)
  112.     INLINE PASCAL $2F3C, 16, 11, $7000, $A82A;
  113.     (*$END*)
  114. PROCEDURE CMMGetPS2ColorRenderingIntent*(CMSession: Components.ComponentInstance; srcProf: CMApplication.CMProfileRef; flags: LONGINT; proc: CMApplication.CMFlattenUPP; refCon: (*ΔΔUNIVΔΔ*) Types.Ptr): CMApplication.CMError;
  115.     (*$IF NOT GENERATINGCFM*)
  116.     INLINE PASCAL $2F3C, 16, 12, $7000, $A82A;
  117.     (*$END*)
  118. PROCEDURE CMMGetPS2ColorRendering*(CMSession: Components.ComponentInstance; srcProf: CMApplication.CMProfileRef; dstProf: CMApplication.CMProfileRef; flags: LONGINT; proc: CMApplication.CMFlattenUPP; refCon: (*ΔΔUNIVΔΔ*) Types.Ptr): CMApplication.CMError;
  119.     (*$IF NOT GENERATINGCFM*)
  120.     INLINE PASCAL $2F3C, 20, 13, $7000, $A82A;
  121.     (*$END*)
  122. PROCEDURE CMMGetPS2ColorRenderingVMSize*(CMSession: Components.ComponentInstance; srcProf: CMApplication.CMProfileRef; dstProf: CMApplication.CMProfileRef; VAR vmSize: LONGINT): CMApplication.CMError;
  123.     (*$IF NOT GENERATINGCFM*)
  124.     INLINE PASCAL $2F3C, 12, 17, $7000, $A82A;
  125.     (*$END*)
  126. PROCEDURE CMConcatenateProfiles*(CMSession: Components.ComponentInstance; thru: CMICCProfile.CMProfileHandle; dst: CMICCProfile.CMProfileHandle; VAR newDst: CMICCProfile.CMProfileHandle): CMApplication.CMError;
  127.     (*$IF NOT GENERATINGCFM*)
  128.     INLINE PASCAL $2F3C, 12, 5, $7000, $A82A;
  129.     (*$END*)
  130.  
  131. (* $ALIGN RESET*)
  132. (* $POP*)
  133.  
  134.  END CMMComponent.
  135.